package com.xuecheng.base.exception;

public class Result {
    private int statusCode;
    private String errCode;
    private String errMessage;

    // 成功时的构造方法
    public Result(int statusCode) {
        this.statusCode = statusCode;
    }

    // 失败时的构造方法
    public Result(int statusCode, String errCode, String errMessage) {
        this.statusCode = statusCode;
        this.errCode = errCode;
        this.errMessage = errMessage;
    }

    // Getters and Setters
    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }
}
